package com.eshop.modules.order.service.dto;

import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;

public class ProductAttrDto implements Serializable
{
    @ApiModelProperty("产品属性ID")
    private Long productId;
    @ApiModelProperty("产品属性sku")
    private String sku;
    @ApiModelProperty("产品属性价格")
    private Double price;
    @ApiModelProperty("产品属性图片")
    private String image;
    
    public Long getProductId() {
        return this.productId;
    }
    
    public String getSku() {
        return this.sku;
    }
    
    public Double getPrice() {
        return this.price;
    }
    
    public String getImage() {
        return this.image;
    }
    
    public void setProductId(final Long productId) {
        this.productId = productId;
    }
    
    public void setSku(final String sku) {
        this.sku = sku;
    }
    
    public void setPrice(final Double price) {
        this.price = price;
    }
    
    public void setImage(final String image) {
        this.image = image;
    }
    
    @Override
    public boolean equals(final Object o) {
        if (o == this) {
            return true;
        }
        if (!(o instanceof ProductAttrDto)) {
            return false;
        }
        final ProductAttrDto other = (ProductAttrDto)o;
        if (!other.canEqual(this)) {
            return false;
        }
        final Object this$productId = this.getProductId();
        final Object other$productId = other.getProductId();
        Label_0065: {
            if (this$productId == null) {
                if (other$productId == null) {
                    break Label_0065;
                }
            }
            else if (this$productId.equals(other$productId)) {
                break Label_0065;
            }
            return false;
        }
        final Object this$price = this.getPrice();
        final Object other$price = other.getPrice();
        Label_0102: {
            if (this$price == null) {
                if (other$price == null) {
                    break Label_0102;
                }
            }
            else if (this$price.equals(other$price)) {
                break Label_0102;
            }
            return false;
        }
        final Object this$sku = this.getSku();
        final Object other$sku = other.getSku();
        Label_0139: {
            if (this$sku == null) {
                if (other$sku == null) {
                    break Label_0139;
                }
            }
            else if (this$sku.equals(other$sku)) {
                break Label_0139;
            }
            return false;
        }
        final Object this$image = this.getImage();
        final Object other$image = other.getImage();
        if (this$image == null) {
            if (other$image == null) {
                return true;
            }
        }
        else if (this$image.equals(other$image)) {
            return true;
        }
        return false;
    }
    
    protected boolean canEqual(final Object other) {
        return other instanceof ProductAttrDto;
    }
    
    @Override
    public int hashCode() {
        final int PRIME = 59;
        int result = 1;
        final Object $productId = this.getProductId();
        result = result * 59 + (($productId == null) ? 43 : $productId.hashCode());
        final Object $price = this.getPrice();
        result = result * 59 + (($price == null) ? 43 : $price.hashCode());
        final Object $sku = this.getSku();
        result = result * 59 + (($sku == null) ? 43 : $sku.hashCode());
        final Object $image = this.getImage();
        result = result * 59 + (($image == null) ? 43 : $image.hashCode());
        return result;
    }
    
    @Override
    public String toString() {
        return "ProductAttrDto(productId=" + this.getProductId() + ", sku=" + this.getSku() + ", price=" + this.getPrice() + ", image=" + this.getImage() + ")";
    }
}
